/**  
 * @project_name y_comm
 * @Title: CashoutModel.java
 * @Package com.yjd.comm.cahout
 * @Description: TODO
 * @author lindy lindytem@126.com  
 * @date 2014-11-5 上午10:58:28
 * @version V1.0  
 * <b>Copyright (c)</b> 2014医信金融信息服务（上海）有限公司-版权所有<br/>
 */
package com.yjd.comm.funds.model;

import java.math.BigDecimal;
import java.util.Map;

import com.yjd.comm.base.model.Model;

/**
 * @ClassName: CashoutModel
 * @Description: TODO
 * @author lindy lindytem@126.com
 * @date 2014-11-5 上午10:58:28
 */
public class FundsModel extends Model {

	/**
	 * @Fields serialVersionUID : TODO
	 */
	private static final long serialVersionUID = -4741086963854290674L;

	private Long user_id;/* 用户ID */
	private Double arrears;
	private Double borrow; /* 借款人累计借款金额 */
	private Double interest;/* 借款人累计支付利息（正常支付的利息） */
	private Double manage;/* 借款人累计支付给平台管理费（正常支付的管理费） */
	private Double services; /* 借款人累计支付服务费 */
	private Double realaddress;/* 借款人累计实地认证费 */
	private Double recharge;/* 个人累计充值金额 */
	private Double invest;/* 投资人累计项目投资金额 */
	private Double profit;/* 投资人投资项目累计收益利息（正常所得利息，借款人支付的正常利息+加息金额） */
	private Double available;// 现金账户，获得利息和充值的钱
	private Double frozen;/* 冻结金额 */
	private Double recovery;/* 待收回金额 */
	private Double cash;/* 累计提现金额 */
	private Double reward;/* 累计红包奖励金额 */
	private Double volume;/* 累计充值券金额 */
	private Double promotion;/* 累计推广收益 */
	private Double financial;/* 发放理财金 */
	private Double financial_return;/* 已使用理财金 */
	private Double extension;/* 累计人人推广收益*/
	private Double total_transfer;/*累计债权转出（本金）*/
	private Double total_buy_transfer;/*累计购买债权转让（实际购买价格）*/
	private Long uptime;/* 最后更新时间 */

	public void setParamsByMapForDto(Map<String, Object> m) {
		this.user_id = (Long) (m.get("user_id"));
		this.available = m.get("available") != null ? ((BigDecimal) m
				.get("available")).doubleValue() : 0.00;
		this.recovery = m.get("recovery") != null ? ((BigDecimal) m
				.get("recovery")).doubleValue() : 0.00;
		this.arrears = m.get("arrears") != null ? ((BigDecimal) m
				.get("arrears")).doubleValue() : 0.00;
		this.invest = m.get("invest") != null ? ((BigDecimal) m.get("invest"))
				.doubleValue() : 0.00;
		this.recharge = m.get("recharge") != null ? ((BigDecimal) m
				.get("recharge")).doubleValue() : 0.00;
	}
	/**
	 * 累计人人推广收益
	 * @return
	 */
	public Double getExtension() {
		return extension;
	}

	public void setExtension(Double extension) {
		this.extension = extension;
	}

	public Long getUser_id() {
		return user_id;
	}

	public void setUser_id(Long user_id) {
		this.user_id = user_id;
	}
	/**
	 *  当前欠款  
	 * @return
	 */
	public Double getArrears() {
		return arrears;
	}

	public void setArrears(Double arrears) {
		this.arrears = arrears;
	}
	/**
	 * 借款人累计借款金额 
	 * @return
	 */
	public Double getBorrow() {
		return borrow;
	}

	public void setBorrow(Double borrow) {
		this.borrow = borrow;
	}
	/**
	 *  借款人累计支付利息（正常支付的利息）
	 * @return
	 */
	public Double getInterest() {
		return interest;
	}

	public void setInterest(Double interest) {
		this.interest = interest;
	}

	/**
	 *  借款人累计支付给平台管理费（正常支付的管理费） 
	 * @return
	 */
	public Double getManage() {
		return manage;
	}

	public void setManage(Double manage) {
		this.manage = manage;
	}
	/**
	 * 借款人累计支付服务费
	 * @return
	 */
	public Double getServices() {
		return services;
	}

	public void setServices(Double services) {
		this.services = services;
	}

	/**
	 * 借款人累计实地认证费
	 * @return
	 */
	public Double getRealaddress() {
		return realaddress;
	}

	public void setRealaddress(Double realaddress) {
		this.realaddress = realaddress;
	}

	/**
	 * 个人累计充值金额
	 * @return
	 */
	public Double getRecharge() {
		return recharge;
	}

	public void setRecharge(Double recharge) {
		this.recharge = recharge;
	}
	/**
	 * 投资人累计项目投资金额 
	 * @return
	 */
	public Double getInvest() {
		return invest;
	}

	public void setInvest(Double invest) {
		this.invest = invest;
	}
	/**
	 * 投资人投资项目累计收益利息（正常所得利息，借款人支付的正常利息+加息金额）
	 * @return
	 */
	public Double getProfit() {
		return profit;
	}

	public void setProfit(Double profit) {
		this.profit = profit;
	}
	/**
	 * 现金账户，获得利息和充值的钱
	 * @return
	 */
	public Double getAvailable() {
		return available;
	}

	public void setAvailable(Double available) {
		this.available = available;
	}

	public Double getFrozen() {
		return frozen;
	}

	public void setFrozen(Double frozen) {
		this.frozen = frozen;
	}
	/**
	 * 待收回金额
	 * @return
	 */
	public Double getRecovery() {
		return recovery;
	}

	public void setRecovery(Double recovery) {
		this.recovery = recovery;
	}
	/**
	 * 累计提现金额
	 * @return
	 */
	public Double getCash() {
		return cash;
	}

	public void setCash(Double cash) {
		this.cash = cash;
	}

	/**
	 * 累计红包奖励金额
	 * @return
	 */
	public Double getReward() {
		return reward;
	}

	public void setReward(Double reward) {
		this.reward = reward;
	}
	/**
	 * 累计充值券金额
	 * @return
	 */
	public Double getVolume() {
		return volume;
	}

	public void setVolume(Double volume) {
		this.volume = volume;
	}
	/**
	 * 累计推广收益
	 * @return
	 */
	public Double getPromotion() {
		return promotion;
	}

	public void setPromotion(Double promotion) {
		this.promotion = promotion;
	}
	/**
	 * 发放理财金 
	 * @return
	 */
	public Double getFinancial() {
		return financial;
	}

	public void setFinancial(Double financial) {
		this.financial = financial;
	}
	/**
	 * 已使用理财金
	 * @return
	 */
	public Double getFinancial_return() {
		return financial_return;
	}

	public void setFinancial_return(Double financial_return) {
		this.financial_return = financial_return;
	}

	public Long getUptime() {
		return uptime;
	}

	public void setUptime(Long uptime) {
		this.uptime = uptime;
	}
	/**
	 * 累计债权转出（本金）
	 * @return
	 */
	public Double getTotal_transfer() {
		return total_transfer;
	}

	public void setTotal_transfer(Double total_transfer) {
		this.total_transfer = total_transfer;
	}
	/**
	 * 累计购买债权转让（实际购买价格）
	 * @return
	 */
	public Double getTotal_buy_transfer() {
		return total_buy_transfer;
	}

	public void setTotal_buy_transfer(Double total_buy_transfer) {
		this.total_buy_transfer = total_buy_transfer;
	}

}
